<?php
defined( '_VALID_MOS' ) or die('<script>window.location.href="http://www.kinifurniture.com";</script>');
$dbh = new GenericDatabaseClass();
$functions = new auction_functions($dbh);

$qry="select * from news where news_type='N' AND status='Y' limit 0,5";

$res=$dbh->query($qry);
//$row=mysql_fetch_object($res);

$isi='<img align="left" src="assets/Titles/TITnews.gif" /><br/><br/>';
$isi.='<table><tr><td width="100%" valign="top">';
$isi.='<ul>';

while($row=mysql_fetch_object($res))
{
	if ($row->target=='B') $target='_blank'; else $target='_self'; 
	$judul=$row->title;
	if ($row->url!='') $judul='<a target="'.$target.'" href="http://'.$row->url.'">'.$row->title.'</a>';
	if ($row->filename!='') $judul='<a target="'.$target.'" href="files/'.$row->filename.'">'.$row->title.'&nbsp;<img border="0" src="show_files/pdf.gif" /></a>';
	$content=$row->contents;
	$tanggal=$row->entrydate;
$isi.='<li><strong>'.$judul.'</strong><br/><i>'.$tanggal.'</i><br/>'.$content.'</li>';
}		

$isi.='</ul></td><td align="right"><img src="assets/otherimages/news.jpg" width="218" height="353" vspace="5" hspace="10" border="0"></td></tr></table>';
?>